//Create a CVideogame class that has the following data members:
//-	A string (fixed-size array) for the title
//-	A float for the price
//-	An int to keep track of stock

#include <iostream>
#include <string>

using namespace std;

class CVideogame
{

	string m_Title;
	float m_price;
	int m_stock;

public:
	
	// Constructor // This can also be your default constructor, provided YOUR PARAMETER LIST HAS DEFAULT VALUES!!!!
	CVideogame( string pTitle = "DEFAULT", float price = 32.23f, int stock = 50 );

	//destruct
	~CVideogame( void );

	//accessor
	string GetTittle() const 
	{ return  m_Title;}
	float  GetPrice() const 
	{ return m_price;}
	int   GetStock() const 
	{ return m_stock;}

	//mutator
	void SetTitle( string pTitle ) 
	{  m_Title=pTitle;}
	void SetPrice( float price   ) 
	{  m_price=price ;}
	void SetStock( int stock    ) 
	{  m_stock=stock ;};

	//function
	void ShowAllTitle( void );
    void ShowAllPrice( void );
    void ShowAllStock( void );
	void sortPrice(void);

};

